<HTML><HEAD><TITLE>ParserTool.js</TITLE></HEAD><BODY>
<A NAME="_top_"></A><PRE><A HREF="index.html">Index Files</A> </PRE><HR/>
<H1>File ParserTool.js</H1>
 Provides some parsing algorithms. <P><DL><DT><B>Author:</B></DT><DD>Carlos Eduardo Goncalves</DD></DL></P>
<HR/>
<A HREF=#ParserTool>ParserTool</A><BR/>
<A HREF=#ParserTool.formToUrl>ParserTool.formToUrl</A><BR/>
<A HREF=#ParserTool.jsToTraceRegister>ParserTool.jsToTraceRegister</A><BR/>
<HR/>
<A NAME=ParserTool></A>
<H2>Constructor ParserTool</H2><PRE>function ParserTool()</PRE> <p>Multi-purpose parser constructor.</p><P></P><BR/><BR/>
<A NAME=ParserTool.formToUrl></A>
<H2> Method ParserTool.formToUrl</H2><PRE>ParserTool.formToUrl = function(form)</PRE> <p>Encode the fields present on a form to URL.</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>form</I></TD><TD><code>HTMLForm</code> to encode. </TD></TR></TABLE><DL><DT><B>Returns:</B></DT><DD><code>String</code> with form URL encoded data.</DD></DL></P><BR/><BR/>
<A NAME=ParserTool.jsToTraceRegister></A>
<H2> Method ParserTool.jsToTraceRegister</H2><PRE>ParserTool.jsToTraceRegister = function(value, id, asText)</PRE> <p>Encode a JavaScript var to a HTML representation used  to display registers on trace console.</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>value</I></TD><TD>The var value. </TD></TR><TR><TD><I>id</I></TD><TD>HTML id attribute used to identify the object. </TD></TR><TR><TD><I>asText</I></TD><TD>Indicate if the value must be render as plain text. </TD></TR></TABLE><DL><DT><B>Returns:</B></DT><DD><code>String</code> with the trace register in HTML.</DD></DL></P><BR/><BR/>
</BODY></HTML>
